package com.huawei.appgallery.forum.posts.buoy.action;

import android.app.Activity;
import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.IOpenViewAction;
import com.huawei.secure.android.common.intent.SafeIntent;
import java.io.Serializable;
import java.util.List;
import o.bqx;
import o.bwx;
import o.bxv.d;
import o.dys.a;
import o.fho;

public class OpenReportPostAction extends IOpenViewAction {
    public static final String ACTION_OPEN_FORUM_REPORT_POST = "com.huawei.gamebox.ACTION_OPEN_FORUM_REPORT_POST";
    public static final String BUNDLE_DOMAINID = "DomainId";
    public static final String BUNDLE_POSTCONTENT = "PostContent";
    public static final String BUNDLE_POSTID = "PostId";
    public static final String BUNDLE_POSTPICS = "PostPics";
    public static final String BUNDLE_POSTTITLE = "PostTitle";
    public static final String BUNDLE_USERNICKNAME = "UserNickName";
    public static final String BUNDLE_USRTICON = "UserIcon";
    private static final String TAG = "OpenReportPostAction";

    public OpenReportPostAction(a aVar, SafeIntent safeIntent) {
        super(aVar, safeIntent);
    }

    public void onAction() {
        bqx.ˏ(TAG, "onAction");
        if (this.callback instanceof Activity) {
            List list;
            bwx o_bwx = (bwx) fho.ˏ().ˋ("Operation").ॱ(bwx.class);
            Serializable serializableExtra = this.intent.getSerializableExtra(BUNDLE_POSTPICS);
            if (serializableExtra instanceof List) {
                list = (List) serializableExtra;
            } else {
                list = null;
            }
            o_bwx.ˎ((Activity) this.callback, new d(this.intent.getStringExtra(BUNDLE_USRTICON), this.intent.getStringExtra(BUNDLE_USERNICKNAME), 0, this.intent.getLongExtra("PostId", 0)).ˊ(this.intent.getStringExtra("PostTitle")).ˎ(this.intent.getStringExtra(BUNDLE_POSTCONTENT)).ॱ(list).ˏ(this.intent.getStringExtra("DomainId")).ˎ());
        }
    }
}
